package net.zhengxinyun.demo.service;

import net.zhengxinyun.demo.entity.Student;
import net.zhengxinyun.demo.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;

public class demoServiceImpl implements demoService {

    private DemoMapper demoMapper;

    @Autowired
    public demoServiceImpl(DemoMapper demoMapper) {
        this.demoMapper = demoMapper;
    }

    @Override
    public Student selectStudent() {
        return demoMapper.studentInfo();
    }
}
